package com.zjq.designpatterns.behaviors.chainofresponsibility.code;/*
 * 版权信息: 北京千⾥马网信科技有限公司</br>
 * Copyright ©2008-2018. All rights reserved. 京ICP备16007318号
 */

/**
 * @author jessie
 * @version 1.0
 * @date 2021/1/28
 */
public class Test {
    public static void main(String[] args) {
        Approver articleAprrover = new ArticleApprover();
        Approver videoAprrover = new VideoApprover();
        Course course = new Course();
        course.setName("java设计模式精讲");
        course.setArticle("java设计模式精讲的手记");
//        course.setVideo("java设计模式精讲的视频");

        articleAprrover.setNextApprover(videoAprrover);
        articleAprrover.deploy(course);
    }
}
